import thunk from 'redux-thunk';
import {applyMiddleware} from 'redux';
import { createStore } from 'redux';
import Reducers from './';

const md = [thunk];
const mq = {Test:{a:0,b:0,v:'ssl'}};
export default (init=mq) => {
    // 这里为什么用函数返回新的store如果这里直接返回store是单例的服务端和客户端都是一个
    return createStore(Reducers, init, applyMiddleware(...md));
}
